<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<style type="text/css">
		*{
			margin:0px;
			padding:0px;
		}
		.top{
			width:100%; 
			height:35px; 
			line-height:35px; 
			font-size:12px;	
		}
		.top ul li{
			list-style:none;
			float:right;
			width:46px;
		}
		a{
			color:#06F;
			text-decoration:none;
		}
		a:hover{
			text-decoration:underline;
		}
		table tr{
			height: 42px;
		}
		.resultMsg{
			width:320px; 
			height:80px;
			font-size:30px;
			color:#093;
			font-weight:bold;
			background:#DFDFDF;
			line-height:80px;
			text-align:center;
			border-radius:10px;
			position:absolute;
			z-index:20;
		}
		#large{
			position:absolute;	
			z-index:999;
		}
	</style>
</head>

<body>
	<div style="height:35px;;width:100%;border-bottom:1px solid #CCC; z-index:-1; position:absolute; background:#EFEFEF;"></div>
	<div style="width:1200px; margin:auto;">
       	<!-- 顶部索引 -->
        <div class="top">
        	<div style="width:50%; float:left;">你好！欢迎进入中国报险网。</div>
            <div style="width:50%; float:right; text-align:right;">
				<jsp:include page="case_top.jsp"></jsp:include>
            </div>
        </div>
        <!-- 后台提示信息 -->
		<input type="hidden" value="${requestScope.upMsg }" id="tips"/>
        <!-- 主体内容 -->
        <div style="width:100%; float:left;">
            <div style="width: 1000px; margin:38px 120px;">       
				<div style="width: 1000px; height: 60px; background: #0C9; border-top-left-radius: 10px; border-top-right-radius: 10px; text-align: center; line-height: 60px; color: #FFF; font-weight:bold; font-family: '微软雅黑'">案件详情</div>
				<div style="border: 1px solid #CCC; font-family: '微软雅黑' ">
					<!-- 修改案件信息 -->
					<form action="${pageContext.request.contextPath }/cases/Case_updatecase.action" method="post">
						<table border="1px" align="center" width="100%" cellspacing="0px" bordercolor="#E8E8E8">
							<tr>
								<td colspan="4">&nbsp;案件编号：${case.cid }</td>
								<input type="hidden" name="cid" value="${case.cid }"/>
							</tr>
							<tr>
								<td align="right" width="20%">报险人：</td>
								<td width="30%">
									&nbsp;${case.customer.cname }
								</td>
								<td align="right" width="20%">接案人员：</td>
								<td width="30%">
									&nbsp;${case.manager.smname }								
								</td>
							</tr>
							<tr >
								<td align="right">车子名称：</td>
								<td>
									&nbsp;${case.car.cname }
								</td>
								<td align="right">车牌号码：</td>
								<td>
									&nbsp;${case.car.cno }
								</td>
							</tr>							
							<tr>
								<td align="right">车架号：</td>
								<td>
									&nbsp;${case.car.cvin }
								</td>
								<td align="right">发动机号：</td>
								<td>
									&nbsp;${case.car.cengine }
								</td>
							</tr>
							<tr>
								<td align="right">身份证：</td>
								<td colspan="3">
									&nbsp;${case.customer.cidcard }
								</td>
							</tr>							
							<tr>
								<td align="right">手机号码：</td>
								<td colspan="3">
									&nbsp;<input type="text" name="cphone" value="${case.cphone }" style="width:220px; height: 32px; padding-left: 5px;"/>
								</td>
							</tr>				
							<tr>
								<td align="right">报险类型：</td>					
								<td colspan="3">				
									&nbsp;<select name="ctid">
										<s:iterator value="#request.casetype" var="ct">											
											<option <s:if test="#request.case.casetype.ctname == #ct.ctname">selected="selected"</s:if> value="${ct.ctid }">${ct.ctname }</option>
										</s:iterator>								
									</select>
								</td>
							</tr>
							<tr>
								<td align="right">报险地点：</td>
								<td colspan="3">
									&nbsp;<input type="text" name="caddress" value="${case.caddress }" style="width:500px; height: 32px; padding-left: 5px;"/>
								</td>
							</tr>
							<tr>
								<td align="right">报险时间：</td>
								<td colspan="3">
									&nbsp;<input type="date" name="cdate" style="padding-left:5px;" value="${case.cdate }"/>
								</td>
							</tr>
							<tr id="body">
								<td align="right">图片：</td>
								<td colspan="3">
									<s:iterator value="#request.case.prcs" var="prc">	
										<div style="float:left;">
											<div>&nbsp;<img src="<s:property value='#prc.purl'/>" width="120px" height="120px"/></div>
											<div style="text-align: center; font-size:12px;"><s:property value='#prc.pname'/></div>
										</div>
									</s:iterator>
								</td>
							</tr>
							<tr >
								<td height="100px" align="right">备注：</td>
								<td colspan="3">
									&nbsp;<textarea rows="5" cols="68" name="cdesc" style="padding:5px 5px;">${case.cdesc }</textarea>							
								</td>
							</tr>
							<tr>
								<td colspan="4" height="60px" align="center">
									<input type="submit" value="确认" style="width: 120px; height: 38px; background: #0C9; border: none; color: #FFF; font-size: 16px;"/>
									<a href="${pageContext.request.contextPath }/cases/Page_backpage.action"><input type="button" value="返回" style="width:120px; height: 38px; background: #0C9; border: none; color: #FFF; font-size: 16px; margin-left:20px;"></a>
								</td>
							</tr>
						</table>
					</form>
				</div>
            </div>
        </div>
        <!-- 版权 -->
        <div style="width:100%; height:30px; text-align:center; line-height:30px; float:left; font-size:14px;">Copyright© 中国报险网 2007-2015，All Rights Reserved</div>
    </div>
    <script type="text/javascript" src="./js/util.js" charset="UTF-8"></script>
</body>
</html>
